import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入登录页面组件
import Login from '@/views/Login'
import Layout from '@/views/Layout'
import reg from '@/views/reg'
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/login', component: Login },
    { path: '/home', component: Layout },
    { path: '/reg', component: reg }
  ]
})

export default router
